/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package payment;

import Decorator.PizzaBase;
import java.sql.Time;

/**
 *
 * @author shenrunfu
 */
public class PizzaDiscountInfo {

    private double rate;
    private String pizzaName;
    private Time startTime;
    private Time endTime;

    public PizzaDiscountInfo() {
        this.rate=0.10;
    }

    
    public Time getEndTime() {
        return endTime;
    }

    public String getPizzaName() {
        return pizzaName;
    }

    public double getRate() {
        return rate;
    }

    public Time getStartTime() {
        return startTime;
    }

    public void setEndTime(Time endTime) {
        this.endTime = endTime;
    }

    public void setPizzaName(String pizzaName) {
        this.pizzaName = pizzaName;
    }

    public void setRate(double rate) {
        this.rate = rate;
    }

    public void setStartTime(Time startTime) {
        this.startTime = startTime;
    }
    
    /**
     * should get discount from configure file and check the discount validate in terms of times  
     * @param pizzaBase
     * @return 
     */
    public double getDiscount(PizzaBase pizzaBase){
        return this.rate;
    }
    
}
